package com.wuwei.tms.workbench.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wuwei.tms.pojo.Borrow;
import com.wuwei.tms.vo.BorrowExcel;
import com.wuwei.tms.vo.BorrowPrint;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BorrowMapper extends BaseMapper<Borrow> {

    List<Borrow> mySelectPage(@Param("offset") Integer offset,@Param("pageSize") Integer pageSize, @Param("search")String search);

    List<BorrowExcel> myUnreturnedPage(@Param("offset") Integer offset, @Param("pageSize") Integer pageSize, @Param("empno") Long empno, @Param("airplane") String airplane);

    List<BorrowExcel>downloadUnReturned(@Param("empno") Long empno, @Param("airplane")String airplane);

    List<BorrowPrint> printForList(@Param("empno") Long empno);
}
